//package org.example.demo4.config;//package org.example.demo4.config;
//
//import javax.sql.DataSource;
//
//import com.zaxxer.hikari.HikariDataSource;
//import org.apache.ibatis.session.SqlSessionFactory;
//import org.mybatis.spring.SqlSessionFactoryBean;
//import org.mybatis.spring.SqlSessionTemplate;
//import org.mybatis.spring.annotation.MapperScan;
//import org.slf4j.Logger;
//import org.slf4j.LoggerFactory;
//import org.springframework.beans.factory.annotation.Qualifier;
//import org.springframework.beans.factory.annotation.Value;
//import org.springframework.boot.autoconfigure.jdbc.DataSourceProperties;
//import org.springframework.boot.context.properties.ConfigurationProperties;
//import org.springframework.context.annotation.Bean;
//import org.springframework.context.annotation.Configuration;
//import org.springframework.context.annotation.Primary;
//import org.springframework.core.io.support.PathMatchingResourcePatternResolver;
//import org.springframework.jdbc.datasource.DataSourceTransactionManager;
//
//
///**
// * mysql数据源配置
// * @author mk
// * @create 2019年7月29日 下午5:12:10
// */
//
//public class PageConfig {
//
//	private Logger logger = LoggerFactory.getLogger(PageConfig.class);
//
//    //使用自动配置无效，
//    //需要手动注入bean，以让
//    //com.mybatisflex.spring.boot.MybatisFlexAutoConfiguration#MybatisFlexAutoConfiguration
//    //正常获取到com.github.pagehelper.PageInterceptor
//    @Bean
//    public PageInterceptor pageInterceptor(){
//        var i = new PageInterceptor();
//        //转小驼峰用 var i = new MyPageInterceptor();
//        //i.setProperties(null);
//        return i;
//    }
//
//
//
//}
